@import '../../styles/var.scss';
@import '../../styles/mixins.scss';

.m-infinite-list {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;

  &.m-infinite-list-header-fixed {
    .m-infinite-list-header {
      position: sticky;
      top: 0;
      z-index: 9;
    }

    .m-infinite-list-body {
      padding: 24px;
    }
  }

  &.m-infinite-list-padding {
    .m-infinite-list-content {
      padding: 24px;
    }
  }

  &.m-infinite-list-combine {
    .m-infinite-list-body-main {
      padding: 0 32px;
      background-color: #fff;
      border-radius: 16px;
    }
  }

  &-multicolumn {
    .m-infinite-list-body-main {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      column-gap: 24px;
      row-gap: 24px;
    }
  }

  &-body {
    &-loading {
      @include flex-center;
      padding: 24px 0;
    }

    &-tip {
      @include flex-center;
      padding: 24px 0;

      &-text {
        position: relative;
        font-size: $font-size-small;
        color: $text-color-secondary;
        font-weight: 400;

        &::before,
        &::after {
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          width: 56px;
          height: 2px;
          background-color: $text-color-secondary;
        }

        &::before {
          left: -80px;
        }

        &::after {
          right: -80px;
        }
      }
    }
  }
}
